package com.infore.qualityControl.enums;
/**
 * 质控措施技术要求
 * @author Cold
 *
 */
public enum QualitySpecificationEnum {
	
	/** 氨氮、高锰酸盐指数、总磷、总氮自动分析仪质控措施技术要求 **/
	ZERO_CHECK_IMN(-1.0, 1.0, "≤±1.0mg/L"), // 零点核查(高锰酸盐指数)
	ZERO_CHECK_NH3(-0.2, 0.2, "≤±0.20mg/L"), // 零点核查(氨氮)
	ZERO_CHECK_TP(-0.02, 0.02, "≤±0.020mg/L"), // 零点核查(总磷)
	ZERO_CHECK_TN(-0.3, 0.3, "≤±0.30mg/L"), // 零点核查(总氮)
	ZERO_CHECK_COD(-5.0, 5.0, "≤±5mg/L"), // 零点核查(化学需氧量)
	ZERO_DRIFT(-5.0, 5.0, "≤±5%"), // 零点漂移
	SPAN_CHECK(-10.0, 10.0, "≤±10%"), // 跨度核查
	SPAN_DRIFT(-10.0, 10.0, "≤±10%"), // 跨度漂移
	
	MULTIPOINT_ZERO_ABSOLUTE_ERROR_IMN(-1.0, 1.0, "≤±1.0mg/L"),  // 多点线性零点绝对误差(高锰酸盐指数)
	MULTIPOINT_ZERO_ABSOLUTE_ERROR_NH3(-0.2, 0.2, "≤±0.20mg/L"),  // 多点线性零点绝对误差(氨氮)
	MULTIPOINT_ZERO_ABSOLUTE_ERROR_TP(-0.02, 0.02, "≤±0.020mg/L"),  // 多点线性零点绝对误差(总磷)
	MULTIPOINT_ZERO_ABSOLUTE_ERROR_TN(-0.3, 0.3, "≤±0.30mg/L"),  // 多点线性零点绝对误差(总氮)
	MULTIPOINT_INDICATING_ERROR(-10.0, 10.0, "≤±10%"),  // 多点线性示值误差
	MULTIPOINT_CORRELATION_COEFFICIENT(0.98, 0.98, "≤±0.98"), // 多点线性相关系数(>= 0.98)
	INTEGRATED_INTERVENTION(-10.0, 10.0, "≤±10%"),  // 集成干预
	REAL_WATER_SAMPLE_COMPARISON_FOUR(-20.0, 20.0, "≤±20%"),  // 实际水样(仪器测定浓度 > IV类水质标准限值)
	REAL_WATER_SAMPLE_COMPARISON_THREE(-30.0, 30.0, "≤±30%"),  // 实际水样(II类水质标准限值 < 仪器测定浓度 < IV类水质标准限值)、当自动监测结果和实验室分析结果均低于II类时，认定比对实验结果合格
	RECOVERY(80.0, 120.0, "80.0%~120.0%"),  // 加标回收率(80~120)
	
	/** 常规五参数标样核查考核质控措施实施要求 **/
	STANDARD_CHECK(-10.0, 10.0, "≤±10%"),
	STANDARD_CHECK_PH(-0.1, 0.1, "≤±0.10pH"), // PH 绝对误差
	STANDARD_CHECK_DO(-10.0, 10.0, "≤±10%"), // 溶解氧
	STANDARD_CHECK_EC_GR(-5.0, 5.0, "≤±5%"), // 电导率 标准溶液值>100μS/cm  ±5%
	STANDARD_CHECK_EC_LE(-5.0, 5.0, "±5μS/cm"), // 电导率 标准溶液值<=100μS/cm  ±5μS/cm
	STANDARD_CHECK_TUB(-10.0, 10.0, "≤±10%"), // 浊度
//	STANDARD_CHECK_DO(-0.3, 0.3), // 溶解氧
	
	/** 常规五参数实际水样对比质控措施实施要求 **/
	REAL_WATER_SAMPLE_COMPARISON_IMN(-10.0, 10.0, "±10%"), // 高锰酸盐指数
	REAL_WATER_SAMPLE_COMPARISON_NH3(-10.0, 10.0, "±10%"), // 氨氮
	REAL_WATER_SAMPLE_COMPARISON_TP(-10.0, 10.0, "±10%"), // 总磷
	REAL_WATER_SAMPLE_COMPARISON_TN(-10.0, 10.0, "±10%"), // 总氮  
	REAL_WATER_SAMPLE_COMPARISON_WT(-0.5, 0.5, "±0.5%"), // 水温
	REAL_WATER_SAMPLE_COMPARISON_PH(-0.5, 0.5, "±0.5%"), // PH
	REAL_WATER_SAMPLE_COMPARISON_DO(-0.5, 0.5, "±0.5%"), // 溶解氧
	REAL_WATER_SAMPLE_COMPARISON_EC_GR(-10.0, 10.0, "±10%"), // 电导率  水样浓度>100μS/cm  ±10%
	REAL_WATER_SAMPLE_COMPARISON_EC_LE(-10.0, 10.0, "±10%"), // 电导率  水样浓度<=100μS/cm  ±10μS/cm
	REAL_WATER_SAMPLE_COMPARISON_TUB(-20.0, 20.0, "±20%"), // 浊度
	REAL_WATER_SAMPLE_COMPARISON_CHL(-20.0, 20.0, "±20%"), // 叶绿素a
	
	/** 其他因子跨度核查质控措施实施要求 **/
	SPAN_CHECH_OTHER(-10.0, 10.0, "±10%"); // (≤±10%)

	private QualitySpecificationEnum(Double lower, Double upper, String scope) {
		this.lower = lower;
		this.upper = upper;
		this.scope = scope;
	}

	private Double lower;
	private Double upper;
	private String scope;

	public Double getLower() {
		return this.lower;
	}
	
	public Double getUpper() {
		return this.upper;
	}

	public String getScope() {
		return scope;
	}

}
